package com.mgface.framework.AIOServer;

import java.nio.ByteBuffer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AA {
	private static final Logger log = LoggerFactory.getLogger(AA.class);
	public static void main(String[] args) {
		String s = "abcde";
		ByteBuffer buffer = ByteBuffer.wrap(s.getBytes());
		log.info("初始化条件:位置>{},极限:{}",buffer.position(),buffer.limit());
		buffer.get();
		buffer.get();
		buffer.mark();
		log.info("初始化条件:位置>{},极限:{}",buffer.position(),buffer.limit());
		buffer.get();
		log.info("初始化条件:位置>{},极限:{}",buffer.position(),buffer.limit());
		buffer.reset();
		log.info("初始化条件:位置>{},极限:{}",buffer.position(),buffer.limit());
	}
}
